package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Gameintel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GameintelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Gameintel record);

    Gameintel selectByPrimaryKey(Long id);

    List<Gameintel> selectAll();

    int updateByPrimaryKey(Gameintel record);


    Gameintel selectByUserId(Long id);


    Long selectMaxId(Long userId);

    Map selectOldSign(Long id);

    void updateScore(@Param("integral") int integral, @Param("id") Long id);
}